﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gollie.Controls
{
	public partial class PageHeader : System.Web.UI.UserControl
	{
		private static string conString = System.Configuration.ConfigurationManager.ConnectionStrings["main"].ConnectionString;

		protected void Page_Load(object sender, EventArgs e)
		{
			if (conString.Contains("test"))
			{
				this.lblTestDemo.Text = "TEST - TEST";
			}
			else if (conString.Contains("demo"))
			{
				this.lblTestDemo.Text = "DEMO - DEMO";
			}
			else
				this.pnlTestDemo.Visible = false;

		}
	}
}